//
//  HomeController.m
//  MoneyIndividual
//
//  Created by Le Anh Tai on 12/24/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import "HomeController.h"
#import "MenuMediator.h"
#import "TitleNumberCell.h"

@interface HomeController ()

@end

@implementation HomeController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.title = NSLocalizedString(@"TÀI CHÍNH CỦA BẠN", nil);
    /*
     U n
     
     tt
     tnc
     cv
     n
     hh
     tc
     ccd
     ckcd
     cv
     n
     dh
     cl
     
     from beginning up to now
     tv = tmhc + ch + cv - n
     tmhc = sum(thu) - sum(chi)
     cv = sum(chi) - sum(thunogoc)
     n = sum(thu) - sum(tranogoc)
     ch = hs - hc
     hs = sokydd*st
     
     hc = (tsk - sokydd)*st
     */
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Delegate UITableView

- (NSInteger)tableView:(UITableView*)tableView numberOfRowsInSection:(NSInteger)section
{
    return 12;
}

- (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath
{
    static NSString *cellIdentifier = @"HomeCell";
    
    TitleNumberCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
    
    if (!cell)
    {
        cell = [[TitleNumberCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
    }
    
    cell.titleLabel.text = @"Title";
    cell.textField.placeholder = @"Something";
    
    return cell;
}

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
    
}
@end
